package com.zhaokuner.provider.service.backup.model.ao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * Description:用户信息
 * <p>
 * Copyright: 天津联想协同科技有限公司
 * <p>
 *
 * @author 赵希坤 zhaoxikun
 * @date 2021/2/16 17:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserAO {
    @NotEmpty(message = "名称不可以为空")
    private String name;
    @NotNull(message = "年龄不可以为空")
    @Max(value = 200, message = "年龄不得大于200")
    @Min(value = 0, message = "年龄不得小于0")
    private Integer age;
}
